package com.aiks.single.singlemavenproject.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * mysql数据库自动装配配置文件
 *
 * @author <a href="mailto:yuanz@yxt.com">yuanz</a>
 * @date 2021-08-26 10:26
 * @since 1.0.0
 **/
@ConfigurationProperties(prefix = HikariDataSourceConfig.HIKARI_DATASOURCE_PREFIX)
@Getter
@Setter
public class HikariDataSourceConfig {

    public static final String HIKARI_DATASOURCE_PREFIX = "aiks.spring.datasource";

    private String jdbcUrl;

    private String username;

    private String password;

    private String driverClassName;

    private int maximumPoolSize = 10;

    private int idleTimeout = 3000;

    private int maxLifetime = 18000;

    private int connectionTimeout = 5000;

    private String connectionTestQuery;
}
